package com.lftea.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import com.lftea.dao.ISaleDAO;
import com.lftea.po.Sale;
import com.lftea.service.ISaleService;

@Service("saleServiceImpl")
@RemotingDestination
public class SaleServiceImpl implements ISaleService {

	@Resource(name = "saleDAOImpl")
	private ISaleDAO saleDAOImpl;
	
	@RemotingInclude
	public List<Sale> findAll() {		
		return saleDAOImpl.findAll();
	}

	@RemotingInclude
	public Sale findById(long saveId) {
		return saleDAOImpl.findById(saveId);
	}

	@RemotingInclude
	public void remove(Sale sale) {
		saleDAOImpl.remove(sale);
	}

	@RemotingInclude
	public void save(Sale sale) {
		saleDAOImpl.save(sale);
	}

}
